package cn.edu.scau.cmi.wujiaxian.exercise7;

interface ShowMessage {
	void 显示商标(String s);
}

class TV implements ShowMessage {
	@Override
	public void 显示商标(String s) {
		System.out.println(s);
	}
}

class PC implements ShowMessage {
	@Override
	public void 显示商标(String s) {
		System.out.println(s);
	}
}

public class Example7_2 {
	
	
	public static void main(String[] args) {
		ShowMessage sm;
		sm = new TV();
		sm.显示商标("长城牌电视机");
		sm = new PC();
		sm.显示商标("联想本月5008PC机");
	}
}
